package com.zjut.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class HitExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public HitExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdhitIsNull() {
            addCriterion("idhit is null");
            return (Criteria) this;
        }

        public Criteria andIdhitIsNotNull() {
            addCriterion("idhit is not null");
            return (Criteria) this;
        }

        public Criteria andIdhitEqualTo(Integer value) {
            addCriterion("idhit =", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitNotEqualTo(Integer value) {
            addCriterion("idhit <>", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitGreaterThan(Integer value) {
            addCriterion("idhit >", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitGreaterThanOrEqualTo(Integer value) {
            addCriterion("idhit >=", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitLessThan(Integer value) {
            addCriterion("idhit <", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitLessThanOrEqualTo(Integer value) {
            addCriterion("idhit <=", value, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitIn(List<Integer> values) {
            addCriterion("idhit in", values, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitNotIn(List<Integer> values) {
            addCriterion("idhit not in", values, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitBetween(Integer value1, Integer value2) {
            addCriterion("idhit between", value1, value2, "idhit");
            return (Criteria) this;
        }

        public Criteria andIdhitNotBetween(Integer value1, Integer value2) {
            addCriterion("idhit not between", value1, value2, "idhit");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNull() {
            addCriterion("Product_ID is null");
            return (Criteria) this;
        }

        public Criteria andProductIdIsNotNull() {
            addCriterion("Product_ID is not null");
            return (Criteria) this;
        }

        public Criteria andProductIdEqualTo(Integer value) {
            addCriterion("Product_ID =", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotEqualTo(Integer value) {
            addCriterion("Product_ID <>", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThan(Integer value) {
            addCriterion("Product_ID >", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Product_ID >=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThan(Integer value) {
            addCriterion("Product_ID <", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdLessThanOrEqualTo(Integer value) {
            addCriterion("Product_ID <=", value, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdIn(List<Integer> values) {
            addCriterion("Product_ID in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotIn(List<Integer> values) {
            addCriterion("Product_ID not in", values, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdBetween(Integer value1, Integer value2) {
            addCriterion("Product_ID between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Product_ID not between", value1, value2, "productId");
            return (Criteria) this;
        }

        public Criteria andProductjdidIsNull() {
            addCriterion("productJDID is null");
            return (Criteria) this;
        }

        public Criteria andProductjdidIsNotNull() {
            addCriterion("productJDID is not null");
            return (Criteria) this;
        }

        public Criteria andProductjdidEqualTo(String value) {
            addCriterion("productJDID =", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidNotEqualTo(String value) {
            addCriterion("productJDID <>", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidGreaterThan(String value) {
            addCriterion("productJDID >", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidGreaterThanOrEqualTo(String value) {
            addCriterion("productJDID >=", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidLessThan(String value) {
            addCriterion("productJDID <", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidLessThanOrEqualTo(String value) {
            addCriterion("productJDID <=", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidLike(String value) {
            addCriterion("productJDID like", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidNotLike(String value) {
            addCriterion("productJDID not like", value, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidIn(List<String> values) {
            addCriterion("productJDID in", values, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidNotIn(List<String> values) {
            addCriterion("productJDID not in", values, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidBetween(String value1, String value2) {
            addCriterion("productJDID between", value1, value2, "productjdid");
            return (Criteria) this;
        }

        public Criteria andProductjdidNotBetween(String value1, String value2) {
            addCriterion("productJDID not between", value1, value2, "productjdid");
            return (Criteria) this;
        }

        public Criteria andHitTimeIsNull() {
            addCriterion("hit_Time is null");
            return (Criteria) this;
        }

        public Criteria andHitTimeIsNotNull() {
            addCriterion("hit_Time is not null");
            return (Criteria) this;
        }

        public Criteria andHitTimeEqualTo(String value) {
            addCriterion("hit_Time =", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeNotEqualTo(String value) {
            addCriterion("hit_Time <>", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeGreaterThan(String value) {
            addCriterion("hit_Time >", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeGreaterThanOrEqualTo(String value) {
            addCriterion("hit_Time >=", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeLessThan(String value) {
            addCriterion("hit_Time <", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeLessThanOrEqualTo(String value) {
            addCriterion("hit_Time <=", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeLike(String value) {
            addCriterion("hit_Time like", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeNotLike(String value) {
            addCriterion("hit_Time not like", value, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeIn(List<String> values) {
            addCriterion("hit_Time in", values, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeNotIn(List<String> values) {
            addCriterion("hit_Time not in", values, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeBetween(String value1, String value2) {
            addCriterion("hit_Time between", value1, value2, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHitTimeNotBetween(String value1, String value2) {
            addCriterion("hit_Time not between", value1, value2, "hitTime");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneIsNull() {
            addCriterion("hiter_Phone is null");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneIsNotNull() {
            addCriterion("hiter_Phone is not null");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneEqualTo(String value) {
            addCriterion("hiter_Phone =", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneNotEqualTo(String value) {
            addCriterion("hiter_Phone <>", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneGreaterThan(String value) {
            addCriterion("hiter_Phone >", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("hiter_Phone >=", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneLessThan(String value) {
            addCriterion("hiter_Phone <", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneLessThanOrEqualTo(String value) {
            addCriterion("hiter_Phone <=", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneLike(String value) {
            addCriterion("hiter_Phone like", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneNotLike(String value) {
            addCriterion("hiter_Phone not like", value, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneIn(List<String> values) {
            addCriterion("hiter_Phone in", values, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneNotIn(List<String> values) {
            addCriterion("hiter_Phone not in", values, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneBetween(String value1, String value2) {
            addCriterion("hiter_Phone between", value1, value2, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPhoneNotBetween(String value1, String value2) {
            addCriterion("hiter_Phone not between", value1, value2, "hiterPhone");
            return (Criteria) this;
        }

        public Criteria andHiterPriceIsNull() {
            addCriterion("hiter_Price is null");
            return (Criteria) this;
        }

        public Criteria andHiterPriceIsNotNull() {
            addCriterion("hiter_Price is not null");
            return (Criteria) this;
        }

        public Criteria andHiterPriceEqualTo(BigDecimal value) {
            addCriterion("hiter_Price =", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceNotEqualTo(BigDecimal value) {
            addCriterion("hiter_Price <>", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceGreaterThan(BigDecimal value) {
            addCriterion("hiter_Price >", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("hiter_Price >=", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceLessThan(BigDecimal value) {
            addCriterion("hiter_Price <", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("hiter_Price <=", value, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceIn(List<BigDecimal> values) {
            addCriterion("hiter_Price in", values, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceNotIn(List<BigDecimal> values) {
            addCriterion("hiter_Price not in", values, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hiter_Price between", value1, value2, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hiter_Price not between", value1, value2, "hiterPrice");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultIsNull() {
            addCriterion("hiter_Price_Result is null");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultIsNotNull() {
            addCriterion("hiter_Price_Result is not null");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultEqualTo(String value) {
            addCriterion("hiter_Price_Result =", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultNotEqualTo(String value) {
            addCriterion("hiter_Price_Result <>", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultGreaterThan(String value) {
            addCriterion("hiter_Price_Result >", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultGreaterThanOrEqualTo(String value) {
            addCriterion("hiter_Price_Result >=", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultLessThan(String value) {
            addCriterion("hiter_Price_Result <", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultLessThanOrEqualTo(String value) {
            addCriterion("hiter_Price_Result <=", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultLike(String value) {
            addCriterion("hiter_Price_Result like", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultNotLike(String value) {
            addCriterion("hiter_Price_Result not like", value, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultIn(List<String> values) {
            addCriterion("hiter_Price_Result in", values, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultNotIn(List<String> values) {
            addCriterion("hiter_Price_Result not in", values, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultBetween(String value1, String value2) {
            addCriterion("hiter_Price_Result between", value1, value2, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andHiterPriceResultNotBetween(String value1, String value2) {
            addCriterion("hiter_Price_Result not between", value1, value2, "hiterPriceResult");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(String value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(String value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(String value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(String value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLike(String value) {
            addCriterion("create_time like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotLike(String value) {
            addCriterion("create_time not like", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<String> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<String> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(String value1, String value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(String value1, String value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}